/**
 * UserController.java 2017年06月19日 16:32
 * <p/>
 * Copyright (c) 2010-2016 yinghezhong Inc. All rights reserved.
 *
 * @Description
 * @version 1.0
 */
package com.ql.servicecomb.demo.consumer.controller;

import com.ql.servicecomb.demo.iserver.user.UserProvider;
import com.ql.servicecomb.demo.model.user.UserModel;
import io.servicecomb.provider.pojo.RpcReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * TODO
 *
 * @author 齐龙
 * @date 2017年06月19日 16:32
 */
@RestController
public class UserController {

    @RpcReference(schemaId = "userProvider", microserviceName = "servicecomb-demo-provider")
    private UserProvider userProvider;

    @RequestMapping("")
    public Object list(){

        return userProvider.getUser(2);
    }
}
